package bd.proiect;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class ViewSpecies extends Activity{
	
	 public void onCreate(Bundle savedInstanceState) {
	     super.onCreate(savedInstanceState);
	     setContentView(R.layout.viewspecies);
	     
	     String info= new String();
	        DataBase bs = new DataBase(this);
		    try{
					bs.createDataBase();
					bs.openDataBase();
					info = bs.getSpeciesInfo();
					bs.close();
			}catch(Exception e){
				info = "Could not find plant" + e ;
			}
			
	  	 	TextView t2 = new TextView(this); 
	 	 	t2=(TextView)findViewById(R.id.result);
	 	 	t2.setText(info);
	 }

}
